import request from '@/utils/request'

// 查询monnify虚拟账户列表
export function listAccounts(query) {
    return request({
        url: '/custservice/accounts/list',
        method: 'get',
        params: query
    })
}

// 查询monnify虚拟账户详细
export function getAccounts(id) {
    return request({
        url: '/custservice/accounts/' + id,
        method: 'get'
    })
}

// 新增monnify虚拟账户
export function addAccounts(data) {
    return request({
        url: '/custservice/accounts',
        method: 'post',
        data: data
    })
}

// 修改monnify虚拟账户
export function updateAccounts(data) {
    return request({
        url: '/custservice/accounts',
        method: 'put',
        data: data
    })
}

// 删除monnify虚拟账户
export function delAccounts(id) {
    return request({
        url: '/custservice/accounts/' + id,
        method: 'delete'
    })
}

// 导出monnify虚拟账户
export function exportAccounts(query) {
    return request({
        url: '/custservice/accounts/export',
        method: 'get',
        params: query
    })
}